Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facing and Axis to enum #91

Open
wants to merge 18 commits into
base: stable
Choose a base branch
from
Open

Facing and Axis to enum #91

wants to merge 18 commits into from

Conversation

Dhaiven
Copy link

@Dhaiven Dhaiven commented Nov 19, 2023

Fix #89

This change requires many changes in pmmp. I can do if this pr is good for you.

src/Facing.php Outdated Show resolved Hide resolved
src/Facing.php Outdated Show resolved Hide resolved
@dktapps
Copy link
Member

dktapps commented Nov 20, 2023

If we're going with enums I would prefer to ditch the numeric values entirely. They have no purpose except to be implicitly misused as Minecraft constants.

@Dhaiven
Copy link
Author

Dhaiven commented Nov 20, 2023

If we're going with enums I would prefer to ditch the numeric values entirely. They have no purpose except to be implicitly misused as Minecraft constants.

Should I do the same for Axis? I don't know if these values ​​represent anything or not

@dktapps
Copy link
Member

dktapps commented Nov 21, 2023

If we're going with enums I would prefer to ditch the numeric values entirely. They have no purpose except to be implicitly misused as Minecraft constants.

Should I do the same for Axis? I don't know if these values ​​represent anything or not

Yes

src/Facing.php Outdated Show resolved Hide resolved
src/Facing.php Outdated Show resolved Hide resolved
src/Facing.php Outdated Show resolved Hide resolved
src/Facing.php Outdated Show resolved Hide resolved
src/Facing.php Outdated Show resolved Hide resolved
src/Facing.php Outdated Show resolved Hide resolved
src/AxisAlignedBB.php Outdated Show resolved Hide resolved
@Dhaiven
Copy link
Author

Dhaiven commented May 12, 2024

This pr is good ? if yes i can change pocketmine to support Facing enum

@Dhaiven Dhaiven requested a review from dktapps May 13, 2024 11:01
@jasonw4331 jasonw4331 added the enhancement New feature or request label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type hinting PHPStan for Facing
3 participants